package com.bw.gmallapi.service.impl;

import com.bw.gmallapi.mapper.OrderMapper;
import com.bw.gmallapi.pojo.Order;
import com.bw.gmallapi.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class OrderService implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public BigDecimal getGmv(String date) {
      return orderMapper.getGmv(date);

    }

    @Override
    public List<Order> getOrderList(String date) {
        return orderMapper.getOrderList(date);
    }
}
